/*********************\
* Author:Dzlua
* QQ:505544956
* Time:2017/04/15
\**********************/
#ifndef __LUA_GIFANIM_H__
#define __LUA_GIFANIM_H__
#pragma once

#include "../../Core/LuaControl.h"

namespace DuiLib {

class LuaGifAnim : public LuaControl
{
    SDLUA_CLASS_DECLARE(LuaGifAnim);

    void SetVisible(bool bVisible);
    int	SetBkImage(LuaState *L);
    int GetBkImage(LuaState *L);
    void SetAutoPlay(bool bIsAuto);
    bool IsAutoPlay();
    void SetAutoSize(bool bIsAuto);
    bool IsAutoSize();
    void PlayGif();
    void PauseGif();
    void StopGif();
};

}

#endif //__LUA_GIFANIM_H__